import request from '@/utils/request'

// 查询存档列表
export function listArchives(data) {
  return request({
    url: '/archives/listEquipmentArchives',
    method: 'post',
      data: data
  })
}

// 查询存档详细
export function getArchives(id) {
  return request({
    url: '/archives/getEquipmentArchivesById?id=' + id,
    method: 'get'
  })
}

// 批量新增存档
export function addArchivesList(data) {
  return request({
    url: '/archives/addEquipmentArchivesList',
    method: 'post',
    data: data
  })
}

// 新增存档
export function addArchives(data) {
  return request({
    url: '/archives/addEquipmentArchives',
    method: 'post',
    data: data
  })
}

// 修改存档
export function updateArchives(data) {
  return request({
    url: '/archives/editEquipmentArchives',
    method: 'post',
    data: data
  })
}

// 删除存档
export function delArchives(id) {
  return request({
    url: '/archives/delEquipmentArchives?ids=' + id,
    method: 'delete'
  })
}

// 恢复存档
export function restoreArchives(data) {
  return request({
    url: '/archives/recoverEquipmentArchives',
    method: 'post',
    data:data
  })
}
